const supplierWarning = {
    namespaced: true,

    state: {
        deleteId: [],

        showPic: true,

        tableCos: [
            {
              prop: "name",
              label: "证书名称",
              show: true
            },
            {
              prop: "supplierName",
              label: "供应商名称",
              show: true
            },
            {
              prop: "contactPerson",
              label: "联系人",
              show: false
            },
            {
              prop: "contactNumber",
              label: "联系电话",
              show: false
            },
            {
              prop: "effectiveDate",
              label: "到期时间",
              show: true
            }
        ],

        searchWay: 1
    },

    mutations: {
        isShowPic( state ) {
            state.showPic = !state.showPic
        },

        isShowCos( state, index ) {
            state.tableCos[index].show = !state.tableCos[index].show
        },

        changeSearchWay( state, way ) {
            state.searchWay = way
        },

        getDeleteId( state, newDeleteId )  {
          state.deleteId = newDeleteId
        }
    }
}

export default supplierWarning